---
title: "SQL-016: Retrieve attorney firm list for other parties"
summary: Retrieve firm-level attorney records, with a leading blank row, for the other-parties maintenance UI.
status: draft
owner: SAIF Documentation Pipeline
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
---

# SQL-016 Retrieve attorney firm list for other parties

Retrieves `OTHER_FIRM` rows of type `ATTY` or `OUTC` (attorney or outside counsel firm), unioned with a leading blank/"no selection" row from `DUAL`, for the `ATTORNEYLISTSQL` code-table lookup used by the other-parties maintenance UI.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-016 |
| **Operation type** | Read |
| **Execution method** | Inline SQL (`clsCodeCollection.GetCodeCollection`) |
| **Database** | Oracle |
| **Command type** | Text |
| **Business object** | N/A (Application layer) |
| **Criteria property** | N/A (Application layer) |
| **Lifecycle method** | N/A (Application layer) |
| **Application class** | `clsOtherPartiesManager` |

## Parameters

No runtime parameters — this is a static code-table lookup constant (`ATTORNEYLISTSQL`), executed as-is via `clsCodeCollection.GetCodeCollection(DPI, ATTORNEYLISTSQL)`.

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [OTHER_FIRM](../database-tables.md#other_firm) | SELECT | `OTHER_FIRM_SEQ_NUM`, `FIRM_NAME`, `OTHER_FIRM_TYPE_CODE` |
| [DUAL](../database-tables.md#dual) | SELECT | N/A (pseudo-table; placeholder blank row) |

## Sample SQL

```sql
select '0', ' '
from dual
union
SELECT
  to_char(OTHER_FIRM_SEQ_NUM) As code,
  Firm_Name As code_descr
FROM OTHER_FIRM
WHERE OTHER_FIRM_TYPE_CODE IN ('ATTY', 'OUTC')
```

## Sources
- `SAIF.Application.Claim.Legal\LegalNet\clsOtherPartiesManager.vb`
